<?php
namespace app\api\controller;
use app\extra\CusSession;
use app\extra\Rest;

class Index extends Rest
{
    # 不需要登陆
    protected $_noAuthorization = ['gets'];

    public function gets()
    {
        $data = array(
            'name' => 'red_panda',
            'address' => 'China',
        );
        $code = 200;
        $msg = 'ok';
        $this->responseError();
    }
}